
class DialogResult<T> {
  final DialogMode mode;
  T data;
  bool success = false;
  DialogResult({this.data, this.mode});
}

enum DialogMode {
  Creation,
  Update
}